package com.medibooking.gwt.client.util;

import com.google.gwt.dom.client.BodyElement;

public class CssFormatterUtil {

	public enum BorderSides {
		LEFT("border-left");
		
		private final String cssAttributeName;
		private BorderSides(String cssAttributeName) {
			this.cssAttributeName = cssAttributeName;
		}
		public String cssAttributeName() {
			return this.cssAttributeName;
		}
	}
	
	
	private static final String PX = "px";
	private static final String BORDER_COLOR_CODE = "#ccc";
	private static final String BORDER_STYLE = "solid";
	private static final int BORDER_WIDTH = 1;
	
	
	public static String toPixels(int value) {
		return value+PX;
		
	}

	public static String getCalendarBorderStyle(BorderSides side) {
		StringBuilder sb = new StringBuilder();
		sb.append(side.cssAttributeName());
		sb.append(": ");
		sb.append(BORDER_STYLE);
		sb.append(" ");
		sb.append(BORDER_WIDTH);
		sb.append(PX);
		sb.append(" ");
		sb.append(BORDER_COLOR_CODE);
		
		
		
		return sb.toString();
		
	}

	

}
